--[[
This code is MIT licensed, see http://www.opensource.org/licenses/mit-license.php
(C) 2010 - 2011 Gideros Mobile 
--]]

Aim = Core.class(Sprite)


function Aim:init()
	
	self:addChild(Bitmap.new(Texture.new("aim.png")))
	-- set initial position
	self:setPosition(100,100)
	self:addEventListener(Event.TOUCHES_END,self.imagetouch,self)
end

function Aim:imagetouch(event)
		local x = event.touch.x
		local y = event.touch.y
		print("touched: X=" .. x .. " Y=" .. y)
		self:setPosition(x-30,y-30)
end

function Aim:onEnterFrame()

end
